package com.donlim.dev.enums;



/**
 * Created by 星 on 2020/11/4
 * 异常状态码 枚举
 */

public enum ExceptionCode {
    USER_DISABLED(1001,"用户已被禁用"),
    WRONG_USER(1002,"用户名或密码错误");

    private Integer code;
    private String message;

    ExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
